/**
 * Created by LeungZ on 2016/8/16.
 */
class LesseeSrv {
    constructor(commonSrv) {
        "ngInject";
        this._commonSrv = commonSrv;
    }

    getRCList(para,filter) {
        return this._commonSrv('get', '/ctg-imageconsole-web/namespace/list',{
            pageSize: para.perPage || 10,
            pageNum: para.page,
            clusterCode: para.code,
            namespaceName:filter?filter.name:'',
            namespaceCode:filter?filter.code:''
        })
        // return this._commonSrv('get', 'http://localhost:33001/src/pages/k8s/lessee/lesseetable.json',{
        //     perpage: para.perPage || 10,
        //     page: para.page,
        //     clusterCode: para.code,
        //     namespaceName:filter||filter.name,
        //     namespaceCode:filter||filter.code
        // })
    }

    deleteLessee(item){
        return this._commonSrv('post','/ctg-imageconsole-web/namespace/delete',{
            id:item.id,
            clusterCode:item.clusterCode,
            namespaceCode:item.namespaceCode
        })
    }
   
}
export default LesseeSrv